<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        new Promise((resolve, reject)=>{
            setTimeout(()=>{
                resolve("aaaaa")
                reject()
            },1000)
        }).then((res)=>{
            console.log(res,"第一次处理代码");
            return new Promise((resolve, reject) => {
                resolve(res+'111')
            }).then(res=>{
                console.log(res,"第二次处理代码");
            })
        })
    </script>
</body>
</html>